package com.kufeng.ii2.activity;

import java.util.Date;

import com.kufeng.ii2.R;

import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.os.PersistableBundle;

public class MainActivity extends BaseActivity {
	public static MainActivity instance;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		
		
		
	}
	
	@Override
	protected void onResume() {
		instance = this;
		CountTimeService.isResumFirst = true;
		Intent serviceIntent = new Intent(this, CountTimeService.class);
		serviceIntent.putExtra("type", "on");
		serviceIntent.putExtra("currentTime", new Date().getTime());
		startService(serviceIntent);
		super.onResume();
	}
}
